package com.spring.config;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MainClass {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx=new AnnotationConfigApplicationContext(MainClass.class);
        System.out.println(ctx.getBean(MainClass.class));
    }
}
